package yang.yu.hrm.organisation.domain;

import javax.persistence.Entity;
import java.util.Date;

/**
 * Created by yyang on 2016/10/7.
 */
@Entity
public abstract class OrganizationEntity extends Organization {
    public Employment employ(Employee employee, Date employmentDate) {
        Employment employment = new Employment(this, employee, employmentDate);
        getRepository().save(employment);
        return employment;
    }
}
